package com.youlin.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.lang.Nullable;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 承办人关系表
 * @author ${author}
 * @since 2020-05-28
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
public class BygUndertaker implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 告别会ID
    private Integer amId;

    // 逝者ID
    private Integer dmId;

    // 承办人姓名
    private String name;

    // 承办人手机号
    private String tel;

    // 承办人性别：0-男、1-女
    private Integer gender;

    // 关系ID
    private Integer relationId;

    // 最后修改时间
    private LocalDateTime createTime;

    // 最后修改时间
    @Nullable
    private LocalDateTime updateTime;

    /**
     * 是否逻辑删除
     */
    @TableLogic
    private Boolean isDel;

}
